﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Text;

public class GameStart : MonoBehaviour
{
    public int ab;
    public GameMode gameMode;
    private void Start()
    {
        AppConst.gameMode = this.gameMode;
        DontDestroyOnLoad(this);

        Manager.ResourceManager.ParseVersionFile();
        Manager.LuaManager.Init(() =>
       {
           Manager.LuaManager.StartLua("main"); //打开文件
            XLua.LuaFunction func = Manager.LuaManager.luaEnv.Global.Get<XLua.LuaFunction>("Main");
           func.Call(); //调用函数
        });
    }

}
